<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersContactTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('users_contact', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('user_id')->unique();
			$table->string('telephone',20)->default('');
			$table->tinyInteger('telephone_open')->default(0);
			$table->string('contact_email')->default('');
			$table->tinyInteger('contact_email_open')->default(0);
			$table->string('qq')->default('');
			$table->string('wechat')->default('');
			$table->string('website')->default('http://');
			$table->timestamps();
			$table->engine = 'InnoDB';
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('users_contact');
	}

}
